const express = require('express');
const cors = require('cors');
const routerRouter = express.Router();
const {registHandel,loginHandel} = require('../router_handel/user')
const expressJoi = require('@escook/express-joi')
const {reg_login_schema} = require('../schema/user')

routerRouter.use(cors())

routerRouter.post('/login',expressJoi(reg_login_schema),loginHandel)

routerRouter.post('/regist',registHandel)

module.exports = routerRouter;